<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="target-densitydpi=640,width=1280,user-scalable=yes">
    <base href="<?php echo $system['siteRoot'];?>" />
    <title>今日新品</title>
    <link rel="SHORTCUT ICON" href="style/images/bitbug_favicon1.ico"/>
    <link rel="BOOKMARK" href="style/images/bitbug_favicon2.ico"/>
    <link rel="stylesheet" href="plugin/reset.css"/>
    <link rel="stylesheet" href="plugin/awesome4/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="style/common.css"/>
    <link rel="stylesheet" href="style/goods.css"/>
    <script src="plugin/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">_root='<?php echo $system['siteRoot'];?>'</script>
    <script src="script/api.js"></script>
</head>
<body>
<div id="container" class="index">
    <?php import_part("custom.home","userBar"); ?>
    <?php import_part("custom.home","header"); ?>
    <?php import_tpl("fragment/nav.php"); ?>
    <div class="main-container">
        <div class="left">
            <div class="slide">
                <?php if(isset($r['categoryRoot'])&&!empty($r['categoryRoot'])) {?>
                    <a class="menu-normal js-menu-love" href="<?php e_page('goods','category',array('cat_id'=>$r['categoryRoot']['id'])) ?>"><?=$r['categoryRoot']['name']?><i class="fa fa-angle-right"></i></a>

                <?php }?>

                <?php if(isset($r['category'])&&!$r['is_bottom']){foreach ($r['category'] as $v) {?>
                    <a class="menu-label js-menu-1" href="<?php e_page('goods','category',array('cat_id'=>$v['id'])) ?>"><?=$v['name']?><i class="fa fa-angle-right"></i></a>
                <?php }}?>
            </div>
            <div class="qr-code-box">
                <img src="images/weixin.png" alt="扫描二维码关注" title="关注我们的微信"/>
                <div>
                    <p class="weixin">扫描二维码</p>
                    <p class="concern">关注我们的微信</p>
                </div>
            </div>
        </div>
        <div class="right">

            <div class="categro">
                <p>今日新品</p>
            </div>

            <div class="goods-plate js-menu-love">
                <?php if(!empty($r['list'])){foreach ($r['list'] as $v) {
                    if(!empty($v)){?>
                        <div class="goods">
                            <div class="goods-pic-info">
                                <a href="<?php e_page('goods','index',array('id'=>$v['gopen_id']))?>"><img src="<?=$v['thumb']?>" alt=""/></a>
                                <a href="<?php e_page('goods','index',array('id'=>$v['gopen_id']))?>"><h4><?=$v['name']?></h4></a>
                            </div>
                            <div class="price"><?=$v['price']['base_price']?></div>
                            <div class="goods-cart js-goods-cart"><a href="<?php e_page('goods','index',array('id'=>$v['gopen_id']))?>">查看详情</a></div>
                        </div>
                    <?php }}}?>
            </div>
        </div>
    </div>
    <?php import_tpl("fragment/footer.php"); ?>
</div>
</body>
</html>